@(name: String, msg: String)

@main(""){
	
	    <div class="alert alert-success">@msg</div>

		<table class="table table-bordered">
		<tr>
			<th>Name</th>
			<th>Start work time</th>
			<th>End work time</th>
			<th>Start break time</th>
			<th>End break time</th>
			<th>Start OT time</th>
			<th>End OT time</th>
			<th>PTO</th>
			<th>Submit Date</th>
			<th>Action</th>
		</tr>
		@for(timelog<-TimeLog.findAllByName(name)){
			<tr>
				<td>@timelog.name</td>
				<td>@timelog.startWorkTime</td>
				<td>@timelog.endWorkTime</td>
				<td>@timelog.startBreakTime</td>
				<td>@timelog.endBreakTime</td>
				<td>@timelog.startOtTime</td>
				<td>@timelog.endOtTime</td>
				<td>
				@timelog.PTO.toInt match {
					case 0 => {No}
					case 1 => {Half Day PTO}
					case 2 => {Whole Day PTO}
					}
					

				</td>
				<td>@timelog.date</td>
				<td><a href="/delete/@timelog.id">Delete</a></td>
			</tr>
		}
		</table>
		<a href="/">Back to time logging page</a>
}
